export default {
  install(vue) {
    vue.prototype.$tt = function (msg, obj) { // eslint-disable-line
      const text = this.$t(msg);
      return Object.keys(obj).reduce((str, k) => str.replace(k, obj[k]), text);
    };
  }
};
